Skip to main content

➖ Decrement

The Decrement action decreases the value of a selected numeric variable by a specified constant amount.


Configuration

  • Select Variable: Choose the numeric variable whose value you want to decrease.
  • Decrement Value: Enter the constant numeric value to subtract from the selected variable.

Features

  • Supports decrementing integer and floating-point variables.
  • Helps in countdowns, reducing counters, or managing limits.
  • Ensures precise control over numeric variable updates.
  • Can be combined with conditions to trigger events when a threshold is reached.

Use Cases

  • Implement countdown timers or retries in Pageflowss.
  • Manage inventory levels by decreasing stock counts.
  • Control loops by decrementing counters until zero.
  • Adjust values dynamically in response to events or inputs.

Notes

  • Ensure the selected variable is numeric to avoid errors.
  • Validate the decrement value to be a positive number.
  • Decrementing beyond zero may result in negative values unless controlled.

Tip: Use Decrement in conjunction with conditional checks to handle edge cases like reaching zero or minimum limits.